package com.kunsan.compose.compoents.login

import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel

/**
 *  author : zqf
 *  date : 2024/11/16 23:37
 */
class LoginViewModel:ViewModel() {

    private val _oneClickLogin = mutableStateOf(true)
    val oneClickLogin: State<Boolean> get() = _oneClickLogin

    fun usePhoneSmsCodeLogin(){
        _oneClickLogin.value = false
    }

    fun useOneClickLogin(){
        _oneClickLogin.value = true
    }
}